avoid magic number

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1547969 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2013-12-05 00:03:48 +00:00
parent 0796f03885
commit 978ab1446b
1 changed files with 6 additions and 6 deletions

View 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 );
}
}