Permalink
Browse files

feat(api): consider 202 a successful HTTP response

  • Loading branch information...
RangerRick committed Jul 25, 2017
1 parent 86a930c commit d21e5e1b98c913a9fce05ebc730c31b57d6ee80a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/api/OnmsResult.ts
View
@@ -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.