I'm trying to create a valid web service but I have some issue with the header ALLOW, and his cors version in different scenario.
Suppose GET /resource/42 is valid and have header allow = 'GET,PUT'
What am I supposed to do in following cases:
1) if resource not found (401) ?
2) if resource required auth (401) ?
3) if the resource is not owned by user (403) ?
4) if the request is rejected (400) because of missing api-version header?
Now, I have exactly the same question if I replace 'GET' by OPTIONS
Maybe I'm lacking knowledge on HTTP but I cannot find full and precise documentation. Anyway, thank you for you help.