Send an "HTTP/1.1 500 Internal Server Error" if there is an error