How to get HTTP Request Error code

hey there, when i make a http request and it failed for any reason, how can i get which error code that it got ? like 404, 500 , 400

You can use a pcall and string.split to find it.

2 Likes