invalid_user_group => 504,
user_access_by_id_denied => 505,
user_access_by_match_denied => 505,
+ # Fatal errors (must be negative).
+ unknown_method => -32601,
};
# These are the fallback defaults for errors not in ERROR_CODE.
package Bugzilla::WebService::Server;
use strict;
use Bugzilla::Util qw(ssl_require_redirect);
+use Bugzilla::Error;
sub handle_login {
my ($self, $class, $method, $full_method) = @_;
eval "require $class";
+ ThrowCodeError('unknown_method', {method => $full_method}) if $@;
return if $class->login_exempt($method);
Bugzilla->login();
I could not figure out what you wanted to do.
[% END %]
+ [% ELSIF error == "unknown_method" %]
+ The requested method '[% method FILTER html %]' was not found.
+
[% ELSIF error == "usage_mode_invalid" %]
'[% invalid_usage_mode FILTER html %]' is not a valid usage mode.