Skip to content

HTTP response code #29

@tribela

Description

@tribela

REST API always give 200 OK even when failed to parse JSON.

client ajax request is like this

$http.post('<rest api addr>')
  .success(function(data) {
    // some statements for success.
  })
  .error(function(data) {
    // some satements for error.
  });

but this code only run success statements because the API server gives 200 OK

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions