commit 1ad69bfd531c1d6cd6c39272848b85b7c825356d Author: aagbsn aagbsn@extc.org Date: Sat Aug 24 18:32:12 2013 +0200
Use error-code 406 to indicate policy rejection --- ooni/reporter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ooni/reporter.py b/ooni/reporter.py index 8a89c8a..67678a6 100644 --- a/ooni/reporter.py +++ b/ooni/reporter.py @@ -354,7 +354,7 @@ class OONIBReporter(OReporter): log.exception(e) raise errors.OONIBReportCreationError
- if response.code == 400: + if response.code == 406: # XXX make this more strict log.err("The specified input or nettests cannot be submitted to this collector.") log.msg("Try running a different test or try reporting to a different collector.")