Module
Simple.Ajax.Errors
- Package
- purescript-simple-ajax
- Repository
- dariooddenino/purescript-simple-ajax
#BasicError Source
type BasicError e = Variant (BasicErrorRow e)
#ParseError Source
type ParseError = (parseError :: JsonDecodeError)
#HTTPError Source
type HTTPError = BasicError ()
Basic error type containing the common http errors.
#AjaxError Source
type AjaxError = BasicError ParseError
Extends HTTPError
to add json parsing errors.
#_parseError Source
_parseError :: Proxy @Symbol "parseError"
#_badRequest Source
_badRequest :: Proxy @Symbol "badRequest"
#_unAuthorized Source
_unAuthorized :: Proxy @Symbol "unAuthorized"
#_forbidden Source
_forbidden :: Proxy @Symbol "forbidden"
#_methodNotAllowed Source
_methodNotAllowed :: Proxy @Symbol "methodNotAllowed"
#_serverError Source
_serverError :: Proxy @Symbol "serverError"
#_affjaxError Source
_affjaxError :: Proxy @Symbol "affjaxError"
#mapBasicError Source
mapBasicError :: StatusCode -> Maybe String -> BasicError ()
#statusOk Source
statusOk :: StatusCode -> Boolean
- Modules
- Simple.
Ajax - Simple.
Ajax. Errors