Send the response status only in case of not authorised error since the other cases weren't related to status codes