private Integer getHttpStatusCode ( ErrorMap error , Shape shape ) { final Integer httpStatusCode = getHttpStatusCode ( error . getErrorTrait ( ) ) ; return httpStatusCode == null ? getHttpStatusCode ( shape . getErrorTrait ( ) ) : httpStatusCode ; }
Get HTTP status code either from error trait on the operation reference or the error trait on the shape .