How to get response code from GetAsync request?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I want to use the Response Code from a GetAsync request as an integer for handling errors.
  2. What is the issue? Include screenshots / videos if possible!
    I cannot find the correct way to do this.
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I have tried looking through fourms and documentation but couldn’t find anything.
    After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
...
b64 = HttpService:GetAsync(URL)
	if b64.StatusCode ~= 200 then
		return('error: ' .. b64.StatusCode)
	end
...

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

GetAsync() just returns the request’s response body, providing a valid request was issued. You’ll need to use RequestAsync() instead.

https://developer.roblox.com/en-us/api-reference/function/HttpService/RequestAsync

Ah, thank you. Is there any difference between the two that I will need to account for? (nevermind)