Merge "Set the status code to 500 on exceptions."