Module

Simple.Ajax.Errors

Package
purescript-simple-ajax
Repository
dariooddenino/purescript-simple-ajax

#BasicError Source

#BasicErrorRow Source

type BasicErrorRow e = (badRequest :: String, unAuthorized :: Unit, forbidden :: Unit, notFound :: Unit, methodNotAllowed :: Unit, formatError :: ForeignError, serverError :: String | e)

#ParseError Source

type ParseError = (parseError :: MultipleErrors)

#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 :: SProxy "parseError"

#_badRequest Source

_badRequest :: SProxy "badRequest"

#_unAuthorized Source

_unAuthorized :: SProxy "unAuthorized"

#_forbidden Source

_forbidden :: SProxy "forbidden"

#_notFound Source

_notFound :: SProxy "notFound"

#_methodNotAllowed Source

_methodNotAllowed :: SProxy "methodNotAllowed"

#_formatError Source

_formatError :: SProxy "formatError"

#_serverError Source

_serverError :: SProxy "serverError"