annotate website/issues/html/_generic.404.html @ 6311:be8d5a8e090a

Fix uncaught error when parsing rest headers, document Started this work as better docs for rest response format. But I found 406 error response was not being tested. Also there was no error for bad Content-Type. In rest.py fix uncaught exceptions due to invalid Accept or Content-Type headers. If Content-type is valid but not application/json return code 415. Document use of accept header (was only shown in examples) and support for q parameter. Describe using .xml and .json extensions to select return format for testing from browser (where setting accept header is a problem). Document 406 error code return. Document 415 error code return and acceptable content types. Previously only doc was in examples. Set up tests for 406 and 415 error codes.
author John Rouillard <rouilj@ieee.org>
date Fri, 01 Jan 2021 14:14:34 -0500
parents 8d595c5486c0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5278
8d595c5486c0 Update from current classic template. Change includes page
John Rouillard <rouilj@ieee.org>
parents: 4024
diff changeset
1 <!-- dollarId: issue.item,v 1.4 2001/08/03 01:19:43 richard Exp dollar-->
8d595c5486c0 Update from current classic template. Change includes page
John Rouillard <rouilj@ieee.org>
parents: 4024
diff changeset
2 <tal:block metal:use-macro="templates/page/macros/icing">
8d595c5486c0 Update from current classic template. Change includes page
John Rouillard <rouilj@ieee.org>
parents: 4024
diff changeset
3 <title metal:fill-slot="head_title">
8d595c5486c0 Update from current classic template. Change includes page
John Rouillard <rouilj@ieee.org>
parents: 4024
diff changeset
4 Item Not Found
8d595c5486c0 Update from current classic template. Change includes page
John Rouillard <rouilj@ieee.org>
parents: 4024
diff changeset
5 </title>
8d595c5486c0 Update from current classic template. Change includes page
John Rouillard <rouilj@ieee.org>
parents: 4024
diff changeset
6 <tal:block metal:fill-slot="body_title">
8d595c5486c0 Update from current classic template. Change includes page
John Rouillard <rouilj@ieee.org>
parents: 4024
diff changeset
7 Item Not Found
8d595c5486c0 Update from current classic template. Change includes page
John Rouillard <rouilj@ieee.org>
parents: 4024
diff changeset
8 </tal:block>
4024
c2d0d3e9099d svn repository setup
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff changeset
9
5278
8d595c5486c0 Update from current classic template. Change includes page
John Rouillard <rouilj@ieee.org>
parents: 4024
diff changeset
10 <td class="content" metal:fill-slot="content">
8d595c5486c0 Update from current classic template. Change includes page
John Rouillard <rouilj@ieee.org>
parents: 4024
diff changeset
11 There is no <span tal:content="context/_classname" /> with id
8d595c5486c0 Update from current classic template. Change includes page
John Rouillard <rouilj@ieee.org>
parents: 4024
diff changeset
12 <span tal:content="context/id"/>
8d595c5486c0 Update from current classic template. Change includes page
John Rouillard <rouilj@ieee.org>
parents: 4024
diff changeset
13 </td>
8d595c5486c0 Update from current classic template. Change includes page
John Rouillard <rouilj@ieee.org>
parents: 4024
diff changeset
14 </tal:block>

Roundup Issue Tracker: http://roundup-tracker.org/