Let's use errorResponse.getStatusCode() here for setStatusCode to make sure we're reporting the right status code, just in case it isn't a 500 when this gets triggered.