struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Jain (JIRA)" <j...@apache.org>
Subject [jira] Commented: (STR-2119) Return appropriate status code when form validation fails
Date Tue, 03 Jul 2007 11:43:26 GMT

    [ https://issues.apache.org/struts/browse/STR-2119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41339
] 

Eric Jain commented on STR-2119:
--------------------------------

btw returning a 400 status code for invalid parameters is being recommended in
Leonard Richardson and Sam Ruby's recent "RESTful Web Services" book
[http://www.oreilly.com/catalog/9780596529260/]. May be worth reconsidering?

> Return appropriate status code when form validation fails
> ---------------------------------------------------------
>
>                 Key: STR-2119
>                 URL: https://issues.apache.org/struts/browse/STR-2119
>             Project: Struts 1
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 1.1 Final
>         Environment: Operating System: other
> Platform: Other
>            Reporter: Eric Jain
>            Assignee: Struts Developers
>            Priority: Minor
>
> When redisplaying a form after validation has indicated a failure, a status code
> such as "400 Bad Request" should be used in place of "200 OK". This simplifies
> testing, and is important for applications that need to interact with the web
> interface of an application directly.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message