-
Notifications
You must be signed in to change notification settings - Fork 5
500 page
Loïc Diringer edited this page May 2, 2017
·
1 revision
When mockiji receives a request, it will search for files matching the request according to the rules.
If the loaded file neither is a .js
or a .html
file, it must be either empty or a JSON valid file.
If not, Mockiji will build a response saying this mock file contains invalid JSON.
{
"errorCode": 500,
"errorDescription": "The mock file contains invalid JSON"
}
Field | Description |
---|---|
errorCode |
It matches the current HTTP response and can be changed in the configuration (http_codes.mock_file_invalid key). |
errorDescription |
It's a text description of the current situation |
Note: The loaded mock file path is described in the HTTP response header X-Mockiji-File
.