Errors now throw HTTP 500 status code