3

I use Apache Myfaces 2.2 on WebSphere Application Server.

I have a JSF page, which "test" the conenction to filesystem and database.

When the connection fails, I want to return another HTTP Status Code. How can I do this with JSF?

veote
  • 1,400
  • 9
  • 33
  • 62

1 Answers1

2

Try response.setStatus();

for more details this link will be helpful :

https://stackoverflow.com/a/16777616/1763602

Marco Sulla
  • 15,299
  • 14
  • 65
  • 100
Angelika
  • 381
  • 1
  • 9
  • 22