Use correct status code for messages