Skip to content

How to properly check ambiguous result code #12

Description

@marcoblos

I'm using the rxp-remote-java passing the reference of credit card and try to deal without doubts with the response.

I received the following 501 response when I try to process the same order again:

image

And I received this response when try to process a order with a wrong credit card reference:

image

I'm not try to argue about the message field but the result code because I don't want to believe that I need to check a string like getMessage().contains("has already been processed") to check if the error ocurred because the order was already been processed or another error.

There is another way to achieve this validation or I really need to check message field?

Thanks in advance.

Marco

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions