private void HandleServerErrors(HttpStatusCode statusCode) { throw new BitbucketApiException( "The server indicated a server error has occured and returned the following HTTP status code: " + statusCode, BitbucketApiError.ServerError); } }