Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Latest commit

 

History

History
16 lines (11 loc) · 325 Bytes

errors.md

File metadata and controls

16 lines (11 loc) · 325 Bytes

Errors

Frappe.js comes with standard error classes that have an HTTP status code attached.

For example you can raise a "not found" (HTTP Status Code 404) via:

throw new frappe.errors.NotFound('Document Not Found');

Standard Errors

  • 403: Forbidden
  • 404: NotFound
  • 417: ValidationError
  • 417: ValueError