Skip to content

Instantly share code, notes, and snippets.

@dscape
Created August 20, 2011 12:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dscape/6b2c6f5cc0711131feea to your computer and use it in GitHub Desktop.
Save dscape/6b2c6f5cc0711131feea to your computer and use it in GitHub Desktop.
---error: { stack: [Getter/Setter],
arguments: undefined,
type: undefined,
message: 'no_db_file',
error: 'not_found',
http_code: 404,
namespace: 'couch',
request:
{ method: 'PUT',
headers: { 'content-type': 'application/json' },
body: '{"nano":true}',
uri: 'http://admin:admin@localhost:5984/test2s/test',
callback: [Function] } }
---headers: { server: 'CouchDB/1.2.0a-b11df55-git (Erlang OTP/R14B01)',
date: 'Sat, 20 Aug 2011 12:22:57 GMT',
'content-type': 'text/plain;charset=utf-8',
'content-length': '44',
'cache-control': 'must-revalidate',
'status-code': 404 }
---body: { error: 'not_found', reason: 'no_db_file' }
---error: null
---headers: { server: 'CouchDB/1.2.0a-b11df55-git (Erlang OTP/R14B01)',
location: 'http://localhost:5984/test2s/test',
etag: '"1-76cd9e165b6635ca5627ae79aba06a6b"',
date: 'Sat, 20 Aug 2011 12:22:57 GMT',
'content-type': 'text/plain;charset=utf-8',
'content-length': '67',
'cache-control': 'must-revalidate',
'status-code': 201 }
---body: { ok: true,
id: 'test',
rev: '1-76cd9e165b6635ca5627ae79aba06a6b' }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment