@@ -11,7 +11,7 @@ import Prelude
12import Type.Proxy (Proxy(..))
12import Type.Proxy (Proxy(..))
13import Data.Newtype (class Newtype)
13import Data.Newtype (class Newtype)
14−import Prim.TypeError (class Fail, Text, Above)
14+import Prim.TypeError (class Fail, Text, Above, Quote, Beside)
16newtype StatusCode = StatusCode Int
16newtype StatusCode = StatusCode Int
@@ -223,14 +223,20 @@ else instance StatusCodeMapImpl (Proxy "networkAuthenticationRequired") where
223else instance
223else instance
226− (Text "Unknown status code label. Valid codes:")
226+ (Beside (Text "Unknown status code: ") (Quote sym))
228− (Text " • 2xx Success: ok, created, accepted, noContent, etc.")
228+ (Text "")
230− (Text " • 3xx Redirect: movedPermanently, found, seeOther, notModified, etc.")
230+ (Text "Valid codes:")
232+ (Text " • 2xx Success: ok, created, accepted, noContent, etc.")
234+ (Text " • 3xx Redirect: movedPermanently, found, seeOther, notModified, etc.")
232− (Text " • 4xx Client: badRequest, unauthorized, forbidden, notFound, conflict, unprocessableEntity, etc.")
236+ (Text " • 4xx Client: badRequest, unauthorized, forbidden, notFound, conflict, unprocessableEntity, etc.")
233− (Text " • 5xx Server: internalServerError, badGateway, serviceUnavailable, etc.")
237+ (Text " • 5xx Server: internalServerError, badGateway, serviceUnavailable, etc.")