Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http status codes in impelementations #37

Open
larshp opened this issue Jul 1, 2018 · 4 comments
Open

http status codes in impelementations #37

larshp opened this issue Jul 1, 2018 · 4 comments

Comments

@larshp
Copy link
Owner

larshp commented Jul 1, 2018

somehow the method implementations should have a possibility to set the http status code?

@mAltr
Copy link

mAltr commented Jul 26, 2018

Nice idea, but as far as i understood, i could also throw an exception catched by the sicf handler and set the status there?

@larshp
Copy link
Owner Author

larshp commented Jul 27, 2018

not sure how that works, can you add an example? I'm sure others can use this, @JohannesKonings

@JohannesKonings
Copy link
Sponsor Contributor

An example would be great. If I can set the http status code via an exception would be good for me.

@xinitrc86
Copy link
Contributor

You could deliver an no check exception, zcx_swag_request_failure that imports code and response message. Catch it inside zcl_swag->run and manipulate mi_server->response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants