当前位置: 动力学知识库 > 问答 > 编程问答 >

java - Change the Stripes HTTP Response Code

问题描述:

I'm using the Stripes framework to develop a Java app.

I need to return my custom HTTP response codes, I mean, sometimes in an ActionBean I want to return something different to "200 OK" when I create or update some object.

I'm not able to find any documentation about this. Some help??

Many thanks.

网友答案:

as in

getContext().getResponse().setStatus(500);
分享给朋友:
您可能感兴趣的文章:
随机阅读: