{-# LANGUAGE DeriveGeneric #-}
module Network.OAuth.OAuth2.AuthorizationRequest where
import Data.Aeson
import Data.Aeson.Types
import GHC.Generics
instance FromJSON Errors where
parseJSON = genericParseJSON defaultOptions { constructorTagModifier = camelTo2 '_', allNullaryToStringTag = True }
instance ToJSON Errors where
toEncoding = genericToEncoding defaultOptions { constructorTagModifier = camelTo2 '_', allNullaryToStringTag = True }
data Errors =
InvalidRequest
| UnauthorizedClient
| AccessDenied
| UnsupportedResponseType
| InvalidScope
| ServerError
| TemporarilyUnavailable
deriving (Show, Eq, Generic)