pass any existing http status code through, otherwise default to 500 (internal server error)