]> source.dussan.org Git - archiva.git/commitdiff
avoid magic number
authorOlivier Lamy <olamy@apache.org>
Thu, 5 Dec 2013 00:03:48 +0000 (00:03 +0000)
committerOlivier Lamy <olamy@apache.org>
Thu, 5 Dec 2013 00:03:48 +0000 (00:03 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1547969 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java

index 7b32bdb796c4a7c94b44b7c49fb900ea819a4e1a..293e230e5a8da8686bf09e69ef5b3f3cb24c8ccd 100644 (file)
@@ -236,7 +236,7 @@ public class ArchivaDavResourceFactory
                 }
                 catch ( RepositoryAdminException e )
                 {
-                    throw new DavException( 500, e );
+                    throw new DavException( HttpServletResponse.SC_INTERNAL_SERVER_ERROR, e );
                 }
             }
             else
@@ -310,7 +310,7 @@ public class ArchivaDavResourceFactory
             }
             catch ( RepositoryAdminException e )
             {
-                throw new DavException( 500, e );
+                throw new DavException( HttpServletResponse.SC_INTERNAL_SERVER_ERROR, e );
             }
         }
 
@@ -485,7 +485,7 @@ public class ArchivaDavResourceFactory
                 }
                 catch ( RepositoryAdminException e )
                 {
-                    storedExceptions.add( new DavException( 500, e ) );
+                    storedExceptions.add( new DavException( HttpServletResponse.SC_INTERNAL_SERVER_ERROR, e ) );
                 }
             }
         }
@@ -706,7 +706,7 @@ public class ArchivaDavResourceFactory
         }
         catch ( RepositoryAdminException e )
         {
-            throw new DavException( 500, e );
+            throw new DavException( HttpServletResponse.SC_INTERNAL_SERVER_ERROR, e );
         }
         return resource;
     }
@@ -1278,11 +1278,11 @@ public class ArchivaDavResourceFactory
         }
         catch ( RepositoryAdminException e )
         {
-            throw new DavException( 500, e );
+            throw new DavException( HttpServletResponse.SC_INTERNAL_SERVER_ERROR, e );
         }
         catch ( IndexMergerException e )
         {
-            throw new DavException( 500, e );
+            throw new DavException( HttpServletResponse.SC_INTERNAL_SERVER_ERROR, e );
         }
     }