Skip to content

Commit

Permalink
feat(api): consider 202 a successful HTTP response
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Reed committed Jul 25, 2017
1 parent 86a930c commit d21e5e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/OnmsResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ export class OnmsResult<T> {

/** Whether this result is considered successful. */
public isSuccess() {
return this.code === 200 || this.code === 204;
return this.code === 200 || this.code === 202 || this.code === 204;
}
}

0 comments on commit d21e5e1

Please sign in to comment.