Parameters Description
code

Response status code.

Default: 200

response

URL encoded response JSON body data.

If not present or invalid JSON format, then no data will be responded.

Default: No default data

Examples Request URL
200 with no data https://luanxt.com/Data/mock-api.php?code=200
200 with response data https://luanxt.com/Data/mock-api.php?code=200&response=%7B%22status%22%3A%22success%22,%22data%22%3A%20%5B%5D%7D
503 with no data https://luanxt.com/Data/mock-api.php?code=503
503 with response data https://luanxt.com/Data/mock-api.php?code=503&response=%7B%22status%22%3A%22fail%22,%22data%22%3A%20%5B%5D%7D