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

Support http response code setting #7

Closed sideshowcoder closed 11 years ago

sideshowcoder commented 11 years ago

Allow to set the http response code, so we can mock errors like 404 with a json response

maybe via file name resource.get.json.404

sideshowcoder commented 11 years ago

support via options header in file like

//! { "statusCode": 201 }

example implementation works but not clean, yet!