Opened 13 years ago

Closed 6 years ago

#8836 closed enhancement (fixed)

pluggable error handler for different dojo.xhr status codes

Reported by: rsaccon Owned by: Bryan Forbes
Priority: high Milestone: 1.8
Component: IO Version: 1.3.0b2
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by bill)

it is often necessary to treat different HTTP status codes differently at client side. For example at bespin code editor project:

status: 401 => notloggedin, status: 409 => userconflict

btw. dojo JsonRestStore? also handles different status codes differently, I think any serious REST app has to deal with this.

it would be great if dojo would provide a way so the developer can easy plug in handlers for the different status codes.

Change History (4)

comment:1 Changed 13 years ago by bill

Milestone: tbd1.4

1.3rc1 has been release; bumping remaining tickets to 1.4 (except for documentation/testing tickets)

comment:2 Changed 12 years ago by dante

Milestone: 1.4future
Owner: changed from anonymous to dante

hmm I exposed dojo.contentHandlers in 1.4, perhaps dojo.errorHandlers could be invented? would need some rework perhaps?

comment:3 Changed 10 years ago by bill

Component: GeneralIO
Description: modified (diff)
Owner: changed from dante to Bryan Forbes
Status: newassigned

Not sure if this can be closed or is still relevant w/ dojo/request.

comment:4 Changed 6 years ago by dylan

Milestone: future1.8
Resolution: fixed
Status: assignedclosed

dojo/request should make this possible (though probably still requires a fair amount of effort by the end user). Closing it now, if someone wants to evaluate this in the context of Dojo 2 and making this more flexible, that would be welcomed!

Note: See TracTickets for help on using tickets.