ankraft / ACME-oneM2M-CSE

An open source CSE Middleware for Education.
https://acmecse.net/
BSD 3-Clause "New" or "Revised" License
23 stars 16 forks source link

Incorrect HTTP Response Code for responseTimeout #94

Closed tsengia closed 1 year ago

tsengia commented 1 year ago

According to TS-0009, table 6.3.2-1, the HTTP status response code for the 4008 REQUEST_TIMEOUT status should be 504 GATEWAY_TIMEOUT.

Modifying this line to be HTTPStatus.GATEWAY_TIMEOUT will fix this.

ankraft commented 1 year ago

Good catch. Thank you.