aboutsummaryrefslogtreecommitdiff
path: root/views/index.jade
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2012-07-04 13:36:51 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2012-07-04 13:36:51 +0200
commitc95f92fa4c42ef86cd994ca0361cb3c1909e6f2d (patch)
tree305cb0eff419485b4fe4bd646f3a953c108b9841 /views/index.jade
parent61305fa6d9faa8bd547faeb6bc3d938251ea9e6c (diff)
downloadexample-collection-json-db-c95f92fa4c42ef86cd994ca0361cb3c1909e6f2d.tar.gz
example-collection-json-db-c95f92fa4c42ef86cd994ca0361cb3c1909e6f2d.tar.bz2
example-collection-json-db-c95f92fa4c42ef86cd994ca0361cb3c1909e6f2d.tar.xz
example-collection-json-db-c95f92fa4c42ef86cd994ca0361cb3c1909e6f2d.zip
o Sending 405 on bad method, 406 on bad Accept values.
Diffstat (limited to 'views/index.jade')
-rw-r--r--views/index.jade6
1 files changed, 6 insertions, 0 deletions
diff --git a/views/index.jade b/views/index.jade
index 7ff1bb1..363355c 100644
--- a/views/index.jade
+++ b/views/index.jade
@@ -25,6 +25,12 @@ block content
code text/html
| you will be served
code application/vnd.collection+json
+ | if you include
+ code */*
+ | in your
+ code Accept
+ | header. If you request only unsupported types, you'll get a
+ a(href='http://httpstatus.es/406') 406
| .
h4 Exploring with curl