Handling errors

Here’s an example of an error returned from the users.roblox.com/v1/users/userId endpoint. You can test this yourself by going to https://users.roblox.com/v1/users/4.

As you can see, it’s an  list containing objects with a ,  , and.
 * The  is an identifier used for an error on an endpoint.
 * The  is information about the error intended for the developer.
 * The  is information about the error indented for the user. It isn’t always present and often isn’t as informative as the.

We can use this code along with the HTTP response code (in this case, ) and the endpoint’s Response Messages from the documentation to find more information.

In this case, it’s just telling us what we already know from the. There are many cases where the API just doesn't give us useful information, like this:

In this case, we don’t get much information - the best we can do is use the documentation to try to figure out what’s wrong here.