Avatar thumbnail endpoint gives internal server error for invalid image hashes

The following thumbnail endpoint:

https://tr.rbxcdn.com/30DAY-Avatar-{imageHash}-Png/420/420/Avatar/Png/noFilter

returns a status code 500 (internal server error) when it receives an image hash that doesn’t exist on the server side / cdn.

Expected behavior

When I give this url an image hash that doesn’t exist, I expect to receive a status code that starts with 4xx, since the error is related to incorrect parameters provided to the endpoint (a non existent image hash). Usually when I write code and receive an error that starts with 5xx, I ignore it or retry the request, thinking that it is unrelated to what I’m doing.

A private message is associated with this bug report

Hello. Thank you for reporting this issue; it should be fixed now