Skip to content

Changing Http Status Codes #2075

Answered by mbaltus
EAGC06 asked this question in Q&A
May 9, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Note that Firely Server is not a part of the Firely .Net SDK, but a separate project that uses the SDK for parts of it.
The answer to how to get the Firely Server to change its response will depend on what you are trying to do:

  • If you are creating a Facade on your own database, the outcome should already be 404 when your code does not result in any resources for a read/search request. Firely Server will take care of that. See https://github.com/FirelyTeam/Vonk.Facade.Starter for an example facade implementation.
  • If you're creating a plugin for Firely Server, you can set http status codes and outcomes on the response in the VonkContext. See example code here: https://github.com/FirelyTeam…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@EAGC06
Comment options

Answer selected by EAGC06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants