0 | module HTTP.API.Client.I18n.EN
2 | import HTTP.API.Client
4 | import public HTTP.API.Client.I18n
8 | serverErr : Bits16 -> String
11 | The server responded with status code \{show s}. This is a
12 | server-side error. Please try again in a moment. If this does not
13 | help, please get in touch with your server admin.
16 | parameters {auto lg : Logger JS}
23 | An error occurred in the user interface. This is probably a bug.
25 | Error details: \{dispErr x}
28 | logHTTPErr Timeout =
31 | Connection to the server timed out. That can happen when you are
32 | on a slow connection or the server is busy with other requests. If
33 | the situation does not improve, please get in touch with your
36 | logHTTPErr NetworkError =
39 | Error when connecting to the server. Please check your network
40 | connection and whether your VPN is correctly set up (if necessary). If this
41 | does not help, the server might be down. In that case, please
42 | get in touch with your server admin.
44 | logHTTPErr (ReqError m) =
45 | case cast {to = Bits16} m.status of
46 | 403 => warn m.message
47 | 401 => warn m.message
48 | 409 => warn m.message
50 | then error (serverErr s)
54 | The server responded with status code \{show m.status}, which is
55 | unexpected and might be a bug. Please get in touch with your server admin
56 | and send them the following detailed error message:
59 | logHTTPErr (DecError s x) =
60 | if s >= 500 then error (serverErr s)
62 | ContentErr t d => error
64 | I got an error when decoding a response from the server. This is
65 | a bug. Please inform your server admin and send them the error
66 | message printed below:
72 | I got an error when decoding a response from the server. This is
73 | a bug. Please inform your server admin and send them the error
74 | message printed below: