Identify the Safe HTTP Method
Which HTTP method is considered 'safe' and is typically used to request data without modifying it?
- GET
- POST
- PUT
- DELETE
- GIT
Purpose of POST Method
Which HTTP method is mainly used to submit new data to a server, such as uploading a form?
- POST
- FETCH
- TRACE
- GET
- PAST
Status Code for Successful Request
If a client receives the status code 200 in an HTTP response, what does it mean?
- The request was successful.
- The requested resource was not found.
- The server encountered an error.
- The request was redirected.
- The server is unavailable.
Detecting a Missing Page
What is the standard HTTP status code returned when you navigate to a non-existing page?
- 404
- 403
- 401
- 405
- 400
Difference between PUT and PATCH
In REST APIs, what is the main difference between the PUT and PATCH HTTP methods?
- PUT replaces an entire resource, whereas PATCH modifies part of it.
- PUT deletes a resource, PATCH creates a resource.
- PUT retrieves data, PATCH uploads images.
- PUT is not idempotent, PATCH is.
- PUT is used for login, PATCH is for logout.
Meaning of HTTP 500
If you receive an HTTP 500 status code, what does it indicate?
- The server encountered an internal error.
- The server is down for maintenance.
- The request was unauthorized.
- The data was not found.
- The request was redirected temporarily.
Allowed Methods Scenario
A client tries to DELETE a resource but receives a 405 status code. What does this mean?
- DELETE is not allowed for that resource.
- The resource has already been deleted.
- The server cannot process the DELETE request due to a conflict.
- The server encountered a syntax error in the request.
- The DELETE method was misspelled.
Idempotence in HTTP Methods
Which of the following HTTP methods is idempotent, meaning repeated identical requests have the same effect as one?
- PUT
- POST
- OPTIONS
- TRASE
- SEND
Client Error Code Example
Which status code denotes a client error due to malformed syntax, often caused by a bad request?
- 400
- 401
- 403
- 504
- 402
HTTP Redirection Status
Which HTTP status code signals that the requested resource has been permanently moved to a new URL?
- 301
- 302
- 404
- 500
- 305