HTTP Request & Response
Solicitud y respuesta HTTP
Una petición HTTP es lo que un cliente envía a un servidor. Tiene un método, una dirección, encabezados y a veces un cuerpo. La respuesta trae un estado, encabezados y datos.
Otro ejemplo
Un formulario envía JSON. Una respuesta 422 da errores de los campos, mientras que una respuesta 201 da el registro nuevo.
Partes principales
- 01Originating request
- 02Resolution or processing hop
- 03Response, timing, and failure
Úsalo cuando
Use códigos de estado claros y cuerpos estructurados para que el éxito y el fallo sigan reglas conocidas.
No lo uses cuando
Nunca trates toda respuesta como un éxito ni pongas datos sensibles en un error.
Nombre usado en código
fetch() / HTTP status Antes de lanzarlo
Check contracts and invariants, authorization, and input limits. Test retries, one-time effects, timeouts, and partial failures. Verify data integrity, compatibility, monitoring, recovery, and rollback.
Outcome: Complete the task with Solicitud y respuesta HTTP (HTTP Request & Response). User context: Un formulario envía JSON. Una respuesta 422 da errores de los campos, mientras que una respuesta 201 da el registro nuevo. Technical concept or control: Solicitud y respuesta HTTP (HTTP Request & Response). Why it fits: Use códigos de estado claros y cuerpos estructurados para que el éxito y el fallo sigan reglas conocidas. Do not use it when: Nunca trates toda respuesta como un éxito ni pongas datos sensibles en un error. Engineering requirements: Define inputs, outputs, contracts, and rules that must always hold. Set authorization and input checks. Define failures, timeouts, retries, one-time effects, data moves, and compatibility limits. Operations: Add useful signals and logs that hide sensitive data. Set capacity limits and write an operator guide. Test recovery and rollback. Acceptance criteria: Contract and failure-path tests pass. Data and authorization rules still hold during retries and partial failures. Check performance limits, monitoring, recovery, and rollback. Evidence and limits (evidence boundary): El estándar cubre únicamente el alcance listado. No elige el estilo visual, la decisión del producto ni el ejemplo de Vibulary. Unknowns to confirm: Where the code runs, data stores, traffic shape, consistency needs, and the security boundary. Also confirm the compatibility period, service goals, and rollback limits.
Revisa esta petición
Review how Solicitud y respuesta HTTP (HTTP Request & Response) is used now. Definition: Una petición HTTP es lo que un cliente envía a un servidor. Tiene un método, una dirección, encabezados y a veces un cuerpo. La respuesta trae un estado, encabezados y datos. Release checks: Check contracts and invariants, authorization, and input limits. Test retries, one-time effects, timeouts, and partial failures. Verify data integrity, compatibility, monitoring, recovery, and rollback. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.