sideshowcoder / canned

Server to respond with fake API responses, by using a directory of files for finding out what to say!
213 stars 46 forks source link

Allow empty response body #35

Closed jkjustjoshing closed 10 years ago

jkjustjoshing commented 10 years ago

When I have a DELETE endpoint I want to have an empty response body. Currently, canned assumes an empty response body is an error and returns a 500 status code. If the file is read properly I think an empty file should return a 204 status by default.

sideshowcoder commented 10 years ago

True, this is a bug! Thanks for reporting want to take a stab at it? I will also take a look as soon as possible