Computers and Technology

HTTP is the protocol that governs communications between web servers and web clients (i. e. browsers). Part of the protocol includes a status code returned by the server to tell the browser the status of its most recent page request. Some of the codes and their meanings are listed below: C++ 200, OK (fulfilled)

403, forbidden

404, not found

500, server error

Given an int variable status, write a switch statement that prints out the appropriate label from the above list based on status.

I'm getting an error on this.

This is my code:

cout << "Enter a status";

cin >> status;

switch (status)

{

case 200:

break;

case 403:

break;

case 404:

break;

case 500:

break;

}

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 03:30, rebekah2503
Identify at least three types of characteristics that you were asked about as you the computer identify a fruit.
Answers: 3
image
Computers and Technology, 25.06.2019 03:10, lokiliddel
Write a program to convert a person's height in inches into centimetres #and their weight in stones into kilograms. (1 inch = 2.54 cm and 1 stone = 6.364 kg)
Answers: 1
image
Computers and Technology, 25.06.2019 05:00, mytymikey123
How does computer network work in a paragraph
Answers: 1
image
Computers and Technology, 25.06.2019 09:30, poop4992
Network administration is concerned with which tasks? the installation and maintenance of network hardware and software the installation and maintenance of computer operating systems the diagnosis and repair of some types of computer hardware the monitoring of users' activity on a social networking site
Answers: 1
Do you know the correct answer?
HTTP is the protocol that governs communications between web servers and web clients (i. e. browsers...

Questions in other subjects:

Konu
Social Studies, 21.01.2021 21:50
Konu
Mathematics, 21.01.2021 21:50