Skip to content

Handling Responses

Olivia edited this page Apr 17, 2021 · 3 revisions

Handling Responses

Every possible response always contains JSON. And every returned JSON always returns a "success", whether true or false.

If success is true, a "response" parameter is specified. Otherwise, it will not appear.

Status codes also indicate what the issue is.

Response Codes

The server can respond with various different codes. See below for what happened and why.

200 OK

This means your request worked and is good! Check for a response.

400 Bad Request

This is sent for one of many reasons:

  1. A username or uuid parameter was not specified when POSTing.
  2. No Method was provided.
  3. You're doing something really weird with the request, just do it right, please.

401 Unauthoized

This is only sent when a key is required, but the provided key (if any) is incorrect.

404 Not Found

This is sent when you try to access a route that isn't configured. If you're getting this after modifying the config, try /jrareload.

405 Not Allowed

This is sent when you send a request with an invalid or incorrect method.

Clone this wiki locally