As a Roblox developer, it is currently too hard to easily handle Http errors, this is in regards to the HttpError
errors that emit when the call fails instead of getting a response.
There’s a HttpError
enum out there which appears to wrap each of Roblox’s HTTP errors, but developers cant utilise it, since HttpService chooses to just throw a Lua error instead of this enum.
The internal method, RequestInternal
chooses to return an error table, with this enum as one of the keys, instead of a Lua error. This is another reason to let developers use the HttpRequest (which also allows cancelling) object instead of the existing methods.
If Roblox is able to address this issue, it would improve my development experience because I’d be able to handle different http errors more elegantly rather than having a Lua error.
(ps, afaik, each error is formed as HttpError: %s [except Timedout for some reason], but at any point, roblox could change this, this is a more future proof feature request. lets not get another debug.traceback
, shall we?)