Function: serverErrorFor()
serverErrorFor(
status,frappeExceptionType?): typeofServerError
Defined in: packages/client/src/core/errors.ts:187
Maps an HTTP status + Frappe exception type to the most specific ServerError subclass. exc_type (when recognized) wins over status.
Parameters
status
number
frappeExceptionType?
string
Returns
typeof ServerError