Always set the appropriate status code.