Files

19 lines
826 B
Plaintext

jackson-databind 3.1.8, spring-boot 4.2.0
== client sends broken JSON
> POST /orders {"id": 1, "quantity": }
< 400 {"detail":"Request body could not be read","status":400,"title":"Bad Request","line":1,"column":23}
== client sends a wrong type
> POST /orders {"id":1,"quantity":1,"lines":[{"sku":"A","qty":"two"}]}
< 400 {"detail":"Request body could not be read","status":400,"title":"Bad Request","field":"lines[0].qty","line":1,"column":48}
== stored data is corrupt (server problem)
> GET /orders/stored
< 500 {"status":500,"title":"Internal Server Error"}
log: ERROR com.ankurm.exceptions.boot.GoodAdvice : JSON failure inside the application
== response cannot be serialised (server problem)
> GET /orders/unwritable
< 500 {"detail":"Failed to write request","status":500,"title":"Internal Server Error"}