From 0d62dbd149641c262edb1c9025e7dc8679612980 Mon Sep 17 00:00:00 2001 From: Ryan McKinley Date: Sun, 29 Apr 2007 00:23:37 +0000 Subject: [PATCH] throw a standard response code when you can't find a field: SOLR-220 git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@533449 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/solr/schema/IndexSchema.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/org/apache/solr/schema/IndexSchema.java b/src/java/org/apache/solr/schema/IndexSchema.java index e142edec962..fb669ba197a 100644 --- a/src/java/org/apache/solr/schema/IndexSchema.java +++ b/src/java/org/apache/solr/schema/IndexSchema.java @@ -706,7 +706,7 @@ public final class IndexSchema { /*** REMOVED -YCS if (defaultFieldType != null) return new SchemaField(fieldName,defaultFieldType); ***/ - throw new SolrException(1,"undefined field "+fieldName); + throw new SolrException(400,"undefined field "+fieldName); } /**