{% extends 'Layouts/Doc/default.html.twig' %} {% block title %}Documentation {% endblock %} {% block headerPageTitle %} {{ 'app.documentation.page.title.error'|trans |upper}} {% endblock %} {% macro renderTree(node, level) %} {% set badgeClass = { 0: 'light-primary', 1: 'light-info', 2: 'light-warning', 3: 'light-success', 4: 'secondary', }[level]|default('secondary') %}
Foxorder's API includes an error management system, this system allows users to have assistance in case of error.
Depending on the type of errors, the error message is often explicit (typing, null, format, etc.) otherwise, it indicates the source of the error and possibly the solution.
| Endpoint | Method | Error code => message | |||||
|---|---|---|---|---|---|---|---|
| {{ group.group|upper }} | |||||||
| {{ value.api }} | {% set typeClass = { 'POST': 'warning', 'PUT': 'primary', 'PATCH': 'info', 'DELETE': 'danger' }[value.type]|default('success') %} {{ value.type|upper|badge('light-' ~ typeClass, false) }} |
|
|||||
| {{ 'app.global.detail.no_record_found'|trans }} | |||||||
| {{ 'app.global.detail.no_record_found'|trans }} | |||||||