[csw-devel] SF.net SVN: opencsw:[455] catalog_signatures/lib/csw/gpg_daemon.rb

Maciej Bliziński maciej at opencsw.org
Fri Jul 22 09:51:03 CEST 2011


Em 21/07/2011 04:18, <bdwalton at users.sourceforge.net> escreveu:
>
> Revision: 455
>          http://opencsw.svn.sourceforge.net/opencsw/?rev=455&view=rev
> Author:   bdwalton
> Date:     2011-07-21 03:18:39 +0000 (Thu, 21 Jul 2011)
>
> Log Message:
> -----------
> provide unique web errors from the web daemon
>
> Signed-off-by: Ben Walton <bwalton at opencsw.org>
>
> Modified Paths:
> --------------
>    catalog_signatures/lib/csw/gpg_daemon.rb
>
> Modified: catalog_signatures/lib/csw/gpg_daemon.rb
> ===================================================================
> --- catalog_signatures/lib/csw/gpg_daemon.rb    2011-07-21 03:18:15 UTC
(rev 454)
> +++ catalog_signatures/lib/csw/gpg_daemon.rb    2011-07-21 03:18:39 UTC
(rev 455)
> @@ -25,11 +25,11 @@
>           response.body = content
>         else
>           response.status = 500
> -          response.body = "500 There was a problem processing the
request."
> +          response.body = "500 Problem signing the catalog file."
>         end
>       else
>         response.status = 500
> -        response.body = "500 There was a problem processing the request."
> +        response.body = "500 Catalog file not found at valid path."

My understanding of the 5** range errors is that there is something wrong on
the server side. It could be a bug or insufficient resources. Have you
looked whether there are better, more specific HTTP error codes that would
better match what happened?

>       end
>     else
>       response.status = 400
>
>
> This was sent by the SourceForge.net collaborative development platform,
the world's largest Open Source development site.
> _______________________________________________
> devel mailing list
> devel at lists.opencsw.org
> https://lists.opencsw.org/mailman/listinfo/devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencsw.org/pipermail/devel/attachments/20110722/9306808a/attachment.html>


More information about the devel mailing list