netconf-wg / restconf

9 stars 4 forks source link

restconf error code bug #61

Closed abierman closed 8 years ago

abierman commented 8 years ago

Hi,

The RESTCONF draft lists a mapping from NETCONF error tags to HTTP error codes. It maps "too-big" to "413". But this is not entirely correct. "too-big" is used when either the request is too large or the response would be too large. 413 is only used when the request is too large.

It is not entirely clear which HTTP error code is appropriate when the response would be too large. 403 seems to be recommended. Maybe we should check with the HTTP WG.

abierman commented 8 years ago

not obvious, but could return 400 Bad Request

abierman commented 8 years ago

error 510 from RFC 2774? 501 Not Implemented?

abierman commented 8 years ago

settle on 400

kwatsen commented 8 years ago

server returns 413 when request too large, and 400 when generated response is too large

abierman commented 8 years ago

fixed

abierman commented 8 years ago

fixed in draft-15