-
-
Notifications
You must be signed in to change notification settings - Fork 1
Handling Responses
Olivia edited this page Apr 17, 2021
·
3 revisions
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.
The server can respond with various different codes. See below for what happened and why.
This means your request worked and is good! Check for a response.
This is sent for one of many reasons:
- A username or uuid parameter was not specified when
POST
ing. - No Method was provided.
- You're doing something really weird with the request, just do it right, please.
This is only sent when a key is required, but the provided key (if any) is incorrect.
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
.
This is sent when you send a request with an invalid or incorrect method.