Skip to content

$.ajax 'statusCode' option doesn't document how 3xx status codes are handled #70

@jasonkarns

Description

@jasonkarns

The statusCode option to $.ajax specifies that 2xx handlers accept the same parameters as the success callback and 4xx/5xx handlers accept the same parameters as the error callback. However, it appears that any 3xx status code that is not transparently handled by the browser (like, say, 300) is also treated like an error. The documentation should be updated to reflect that 3xx status codes are treated like errors and, as such, the callback parameters should be the same as the error callback.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions