Added 500 status code