SOLR-249 -- adding error codes not used in solr, but useful for custom plugins.

UNAUTHORIZED( 401 ),
  FORBIDDEN( 403 ),

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@542737 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ryan McKinley 2007-05-30 03:13:05 +00:00
parent 7495648e55
commit 6b2bf1b99c
1 changed files with 2 additions and 0 deletions

View File

@ -32,6 +32,8 @@ public class SolrException extends RuntimeException {
*/
public enum ErrorCode {
BAD_REQUEST( 400 ),
UNAUTHORIZED( 401 ),
FORBIDDEN( 403 ),
NOT_FOUND( 404 ),
SERVER_ERROR( 500 ),
SERVICE_UNAVAILABLE( 503 );