Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#461 closed defect (fixed)

A 204 response is valid, yet it is treated as an error

Reported by: m8 - morris johns Owned by: morris
Priority: high Milestone:
Component: Core Version: 0.2
Keywords: 204 bind 2xx rfc2616 Cc:
Blocked By: Blocking:

Description

dojo.bind treats a 204 response as an error.

A 204 is a valid response - it means that the response is empty. This is a normal response to use when using ajax calls wherever there is no data to return (or if the response information is only in the headers).

See http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

Given that 2xx responses are defined as 'succesful' perhaps all 20x responses should be treated as OK.

Change History (3)

comment:1 Changed 13 years ago by anonymous

Owner: changed from anonymous to morris

comment:2 Changed 13 years ago by sjmiles

Resolution: fixed
Status: newclosed

Added 204 to acceptable responses for BrowserIO. We need to watch for mimetype conversions that fail on empty data.

comment:3 Changed 12 years ago by (none)

Milestone: 0.3release

Milestone 0.3release deleted

Note: See TracTickets for help on using tickets.