added error message for 500 internal server error