HyperSwitch/errors/bad request
Appearance
< HyperSwitch | errors
HTTP Status
[edit]400
Description
[edit]Request parameters are invalid and the server will not process the request. The detail
body field will contain a detailed description of the error and suggest ways to fix it.
Error response contains JSON body in the form of application/problem+json
Body Schema
[edit]Field | Type | Description | Example |
---|---|---|---|
type | string | Link to the error description page | https://mediawiki.org/wiki/HyperSwitch/errors/bad_request |
method | string | HTTP request method | get |
uri | string | Requested URI that produced this problem | /en.wikipedia.org/v1/media/math/render/ads/asdcac |
title | string | High-level explanation of the error | Invalid parameters |
detail | string | A detailed explanation of the problem. It might contain, for example, a name of the invalid parameter and the description of the failed expectation. | data.params.format should be equal to one of the allowed values: [svg, mml, png] |
Specific error types
[edit]invalid_tid
[edit]Parsing of the uuid parameter failed. To help debugging the following extra field are added to the response:
Field | Type | Description | Example |
---|---|---|---|
tid | string | Original value of the TID for which parsing failed | asdfasdfasdfasdfasdfasdfasdf |
bucket | string | A name of the bucket where the error was found | key_rev_value |
invalid_revision
[edit]Parsing the revision parameter failed. To help debugging the following extra fields are added to the response:
Field | Type | Description | Example |
---|---|---|---|
rev | string | Original value of the revision for which parsing failed | asdfasdfasdfasdfasdfasdfasdf |
bucket | string | A name of the bucket where the error was found | key_rev_value |
invalid_paging_token
[edit]Parsing of the paging token failed. The tokens used in RESTBase uses JSON Web Tokens as paging tokens. This errors indicates that parsing a token failed, please make sure you're providing exactly the same token from the previous response _links
object.