From: Olivier Lamy Date: Thu, 5 Dec 2013 00:03:48 +0000 (+0000) Subject: avoid magic number X-Git-Tag: archiva-2.0.0-RC1~159 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=978ab1446b07ede86c1f4e5dbc277e9b476a4c3e;p=archiva.git avoid magic number git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1547969 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java b/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java index 7b32bdb79..293e230e5 100644 --- a/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java +++ b/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java @@ -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 ); } }