private static ErrorResponse GetNotAuthorized(Core.Responses.AuthorizationResponse authorizationResponse)
 {
     return(new ErrorResponse
     {
         Error = ErrorCodes.NotAuthorized,
         ErrorDescription = ErrorDescriptions.TheClientIsNotAuthorized
     });
 }
 private static ErrorResponse GetRequestSubmitted(Core.Responses.AuthorizationResponse authorizationResponse)
 {
     return(new ErrorResponse
     {
         Error = ErrorCodes.RequestSubmitted,
         ErrorDescription = ErrorDescriptions.TheResourceOwnerDidntGiveHisConsent
     });
 }
 private static ErrorResponse GetNeedInfo(Core.Responses.AuthorizationResponse authorizationResponse)
 {
     return(new ErrorResponse
     {
         Error = ErrorCodes.NeedInfo,
         ErrorDescription = ErrorDescriptions.TheAuthorizationProcessNeedsMoreInformation,
         ErrorDetails = authorizationResponse.ErrorDetails
     });
 }