holodeck-b2b / axis2-rest-status-only-error

Contains an Axis2 module that on an AxisFault will return empty response with HTTP error status code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Axis2 REST - Empty error responses

This project contains a simple Axis2 module that on an AxisFault will return an empty response with only HTTP error status code. Additionally it will set a custom "X-Error" HTTP header that includes the error message as contained in the AxisFault that triggered the error response.


Code hosted at https://github.com/holodeck-b2b/axis2-rest-status-only-error.git
Issue tracker https://github.com/holodeck-b2b/axis2-rest-status-only-error/issues

Usage

Prerequisites

This module can be installed in any Axis2 version 1.6 or later running on a JRE 1.6 or later. The Axis2 configuration must define a MessageOut phase in the OutFaultFlow.

Using

Just include a reference to this module to enable it for a service:

<module ref="rest-no-error-content"/>

Contributing

We are using the simplified Github workflow to accept modifications which means you should:

  • create an issue related to the problem you want to fix or the function you want to add (good for traceability and cross-reference)
  • fork the repository
  • create a branch (optionally with the reference to the issue in the name)
  • write your code
  • commit incrementally with readable and detailed commit messages
  • run integration tests to check everything works on runtime
  • submit a pull-request against the master branch of this repository

If your contribution is more than a patch, please contact us beforehand to discuss which branch you can best submit the pull request to.

Submitting bugs

You can report issues directly on the project Issue Tracker. Please document the steps to reproduce your problem in as much detail as you can (if needed and possible include screenshots).

Versioning

Version numbering follows the Semantic versioning approach.

License

This module is licensed under the Lesser General Public License V3 (LGPLv3) which is included in the LICENSE in the root of the project.

Support

Commercial support is provided by Chasquis Consulting. Visit Chasquis-Consulting.com for more information.

About

Contains an Axis2 module that on an AxisFault will return empty response with HTTP error status code.

License:GNU Lesser General Public License v3.0


Languages

Language:Java 100.0%