Skip to main content
formatting and making it more clear
Source Link
Edoardo
  • 236
  • 1
  • 7

403 is the code but you You should match the description of the error with the code that you are giving: if you say

Service not available in your area.

then you should give a 404 because you claim that the service is not available. if you say

You are not authorized for this service in your area.

  • if you say Service not available in your area. then you should give a 404 because you claim that the service is not available.

  • if you say You are not authorized for this service in your area. then you should give a 403 because you claim that the caller is not authorized.

then you should give a 403 because you claim that the caller is not authorized. I'dI'd go for the second.

403 is the code but you should match the description of the error with the code that you are giving: if you say

Service not available in your area.

then you should give a 404 because you claim that the service is not available. if you say

You are not authorized for this service in your area.

then you should give a 403 because you claim that the caller is not authorized. I'd go for the second.

You should match the description of the error with the code that you are giving:

  • if you say Service not available in your area. then you should give a 404 because you claim that the service is not available.

  • if you say You are not authorized for this service in your area. then you should give a 403 because you claim that the caller is not authorized.

I'd go for the second.

Source Link
Edoardo
  • 236
  • 1
  • 7

403 is the code but you should match the description of the error with the code that you are giving: if you say

Service not available in your area.

then you should give a 404 because you claim that the service is not available. if you say

You are not authorized for this service in your area.

then you should give a 403 because you claim that the caller is not authorized. I'd go for the second.