Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\RestApi\Presentation\ErrorResponseToHttpStatus Class Reference

Static Public Member Functions

static lookup (ErrorResponse $error)
 

Static Private Attributes

static array $lookupTable
 

Detailed Description

Member Function Documentation

◆ lookup()

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

Member Data Documentation

◆ $lookupTable

array Wikibase\Repo\RestApi\Presentation\ErrorResponseToHttpStatus::$lookupTable
staticprivate
Initial value:
= [
]
const UNEXPECTED_ERROR
Definition ErrorResponse.php:31
const STATEMENT_DATA_MISSING_FIELD
Definition ErrorResponse.php:29
const INVALID_PATCH
Definition ErrorResponse.php:21
const INVALID_PROPERTY_ID
Definition ErrorResponse.php:13
const INVALID_FIELD
Definition ErrorResponse.php:11
const INVALID_PATCH_FIELD_TYPE
Definition ErrorResponse.php:23
const PATCH_TARGET_NOT_FOUND
Definition ErrorResponse.php:19
const STATEMENT_NOT_FOUND
Definition ErrorResponse.php:30
const PATCHED_STATEMENT_MISSING_FIELD
Definition ErrorResponse.php:18
const PATCH_TEST_FAILED
Definition ErrorResponse.php:20
const INVALID_STATEMENT_ID
Definition ErrorResponse.php:14
const PATCHED_STATEMENT_INVALID_FIELD
Definition ErrorResponse.php:17
const INVALID_PATCH_OPERATION
Definition ErrorResponse.php:22
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:27
const INVALID_ITEM_ID
Definition ErrorResponse.php:12
const ITEM_NOT_FOUND
Definition ErrorResponse.php:25
const COMMENT_TOO_LONG
Definition ErrorResponse.php:9
const MISSING_JSON_PATCH_FIELD
Definition ErrorResponse.php:24
const STATEMENT_DATA_INVALID_FIELD
Definition ErrorResponse.php:28
const ITEM_REDIRECTED
Definition ErrorResponse.php:26

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