contactlab / saray

:warning: This project is no longer mantained - 'Yet Another Rest API Stubber'.split(' ').reverse().map(item => item[0].toLowerCase()).join('')
Apache License 2.0
13 stars 7 forks source link

Better HTTP OPTIONS handling #2

Closed pferretti closed 8 years ago

pferretti commented 8 years ago

Now, by default, all HTTP OPTIONS responses returns an HTTP 200 status code. We need to be more precise, so the stubber should return a 200 status code for an OPTIONScall on an existing resource and a 404 for an OPTIONScall on a not existing resource.

tsriram commented 8 years ago

I'll take this up!

pferretti commented 8 years ago

Ok, you can send a PR on the develop branch!