Bugfix: Set right Statuscode