mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 14:35:45 +01:00
use status code 412 for failed plugin conditions
This commit is contained in:
@@ -110,7 +110,7 @@ public class PluginResource
|
||||
* <br />
|
||||
* <ul>
|
||||
* <li>200 success</li>
|
||||
* <li>412 conflict</li>
|
||||
* <li>412 precondition failed</li>
|
||||
* <li>500 internal server error</li>
|
||||
* </ul>
|
||||
*
|
||||
@@ -138,7 +138,7 @@ public class PluginResource
|
||||
{
|
||||
logger.warn(
|
||||
"could not install plugin package, because the condition failed", ex);
|
||||
response = Response.status(Status.CONFLICT).entity(
|
||||
response = Response.status(Status.PRECONDITION_FAILED).entity(
|
||||
new RestActionResult(false)).build();
|
||||
}
|
||||
catch (Exception ex)
|
||||
@@ -178,7 +178,7 @@ public class PluginResource
|
||||
* <br />
|
||||
* <ul>
|
||||
* <li>200 success</li>
|
||||
* <li>412 conflict</li>
|
||||
* <li>412 precondition failed</li>
|
||||
* <li>500 internal server error</li>
|
||||
* </ul>
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user