HTTP status code 302 (Found)

What to do when HTTP status code 302 (Found) is returned.

zosConnect-2.0 Applies to zosConnect-2.0.

z/OS® Connect returns an HTTP status code 302 (Found) when a request is made over an HTTP connection to access a resource protected by requireSecure="true". When a resource is protected by requireSecure="true", the API request must be received by Liberty on an HTTPS port.

The requireSecure attribute can be set on various configuration elements. For more information, see zosConnect-2.0 Configuration elements.

When an unencrypted connection is being used intentionally, ensure that requireSecure="false" is set.

Note:

When using AT-TLS, and z/OS Connect is configured with an AT-TLS inbound policy, the client connects to the server's httpPort (not the httpsPort) and the connection is unencrypted. In this configuration, any attempt to access a resource with requireSecure="true" results in the HTTP status code 302 being returned.