Currently read_place_asset if the api returns an error will only give you the roblox code.
But for example code 0 has multiple error messages connected with it.
Example:
{ "errors": [ { "code": 0, "message": "User is not authorized to access Asset." } ] }
and
{ "errors": [ { "code": 0, "message": "Request asset was not found" } ] }
so In this pool request I decided to give full response form the endpoint and not only the code.
We could maybe make a function that detects when it comes back with html if it does we just give html responce back as the error message this would also be useful for rojo
Currently read_place_asset if the api returns an error will only give you the roblox code. But for example code 0 has multiple error messages connected with it. Example:
{ "errors": [ { "code": 0, "message": "User is not authorized to access Asset." } ] }
and{ "errors": [ { "code": 0, "message": "Request asset was not found" } ] }
so In this pool request I decided to give full response form the endpoint and not only the code.