Use appropriate status code