Skip to content

Conversation

@nfreear
Copy link

@nfreear nfreear commented Jul 23, 2018

Hi @eduardoboucas,

I've implemented a fix/enhancement for the #218 issue.

You'll see that it uses several sources to try to determine the HTTP status code — payload.rawError.code, then payload.rawError._smErrorCode.

The possible HTTP status codes are:

I hope this helps.

Best wishes,

Nick

@nfreear
Copy link
Author

nfreear commented Jul 23, 2018

Hi @eduardoboucas,

The Travis-CI build fails because of a pre-existing standard style error.

If you ignore that, the unit tests etc. pass fine!

I hope that helps,

Nick


(Travis-CI: .. 407144707)

@eduardoboucas
Copy link
Owner

I must say I'm not sure I like the idea of using 404 for missing config properties. As you pointed out, I think a 400 would be more appropriate.

Other than that, it looks great. Thanks for this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants