better check on the status code as the reason is optional
linting