You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by mc...@apache.org on 2015/11/23 15:37:35 UTC
nifi git commit: NIFI-655: - Updating documentation for the failure
response codes.
Repository: nifi
Updated Branches:
refs/heads/NIFI-655 e61a36908 -> ec50a2de8
NIFI-655:
- Updating documentation for the failure response codes.
Project: http://git-wip-us.apache.org/repos/asf/nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/ec50a2de
Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/ec50a2de
Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/ec50a2de
Branch: refs/heads/NIFI-655
Commit: ec50a2de8c6901bff366539ace328443a2664209
Parents: e61a369
Author: Matt Gilman <ma...@gmail.com>
Authored: Mon Nov 23 09:37:27 2015 -0500
Committer: Matt Gilman <ma...@gmail.com>
Committed: Mon Nov 23 09:37:27 2015 -0500
----------------------------------------------------------------------
.../main/java/org/apache/nifi/web/api/AccessResource.java | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/nifi/blob/ec50a2de/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/AccessResource.java
----------------------------------------------------------------------
diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/AccessResource.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/AccessResource.java
index b486d74..e198438 100644
--- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/AccessResource.java
+++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/AccessResource.java
@@ -155,7 +155,10 @@ public class AccessResource extends ApplicationResource {
@ApiResponses(
value = {
@ApiResponse(code = 400, message = "NiFi was unable to complete the request because it was invalid. The request should not be retried without modification."),
- @ApiResponse(code = 409, message = "The request was valid but NiFi was not in the appropriate state to process it. Retrying the same request later may be successful.")
+ @ApiResponse(code = 401, message = "Unable to determine access status because the client could not be authenticated."),
+ @ApiResponse(code = 403, message = "Unable to determine access status because the client is not authorized to make this request."),
+ @ApiResponse(code = 409, message = "Unable to determine access status because NiFi is not in the appropriate state."),
+ @ApiResponse(code = 500, message = "Unable to determine access status because an unexpected error occurred.")
}
)
public Response getAccessStatus(
@@ -287,7 +290,8 @@ public class AccessResource extends ApplicationResource {
value = {
@ApiResponse(code = 400, message = "NiFi was unable to complete the request because it was invalid. The request should not be retried without modification."),
@ApiResponse(code = 403, message = "Client is not authorized to make this request."),
- @ApiResponse(code = 409, message = "The request was valid but NiFi was not in the appropriate state to process it. Retrying the same request later may be successful.")
+ @ApiResponse(code = 409, message = "Unable to create access token because NiFi is not in the appropriate state. (i.e. may not be configured to support username/password login."),
+ @ApiResponse(code = 500, message = "Unable to create access token because an unexpected error occurred.")
}
)
public Response createAccessToken(