Skip to content

Errors

Most errors use one of these JSON shapes:

{ "msg": "..." }
{ "error": "..." }
  • Typically return { "msg": "..." } with 400, 403, or 404 status codes.
  • Auth middleware returns 403 for missing or invalid tokens.
  • Ownership checks often return 200 with { "error": "accion no valida." }.
  • Not-found errors return 404 with { "error": "Paciente no encontrado." }.

These status code inconsistencies are part of the current API behavior.