Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\RestApi\Presentation\ErrorResponseToHttpStatus Class Reference

Static Public Member Functions

static lookup (ErrorResponse $error)
 

Static Private Attributes

static $lookupTable
 

Detailed Description

Member Function Documentation

◆ lookup()

static Wikibase\Repo\RestApi\Presentation\ErrorResponseToHttpStatus::lookup ( ErrorResponse  $error)
static

Member Data Documentation

◆ $lookupTable

Wikibase\Repo\RestApi\Presentation\ErrorResponseToHttpStatus::$lookupTable
staticprivate
Initial value:
= [
]
const UNEXPECTED_ERROR
Definition: ErrorResponse.php:21
const INVALID_FIELD
Definition: ErrorResponse.php:11
const STATEMENT_NOT_FOUND
Definition: ErrorResponse.php:20
const INVALID_STATEMENT_DATA
Definition: ErrorResponse.php:14
const INVALID_STATEMENT_ID
Definition: ErrorResponse.php:13
const INVALID_OPERATION_CHANGED_STATEMENT_ID
Definition: ErrorResponse.php:15
const INVALID_EDIT_TAG
Definition: ErrorResponse.php:10
const INVALID_OPERATION_CHANGED_PROPERTY
Definition: ErrorResponse.php:16
const PERMISSION_DENIED
Definition: ErrorResponse.php:19
const INVALID_ITEM_ID
Definition: ErrorResponse.php:12
const ITEM_NOT_FOUND
Definition: ErrorResponse.php:17
const COMMENT_TOO_LONG
Definition: ErrorResponse.php:9
const ITEM_REDIRECTED
Definition: ErrorResponse.php:18

The documentation for this class was generated from the following file: