Fix server error status to 500