changed response code for notfound