1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
arlik [135]
4 years ago
5

HTTP is the protocol that governs communications between web servers and web clients (i.e. browsers). Part of the protocol inclu

des 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: 200, OK (fulfilled) 403, forbidden 404, not found 500, server error Given an int variable status, write a switch statement that prints out, on a line by itself, the appropriate label from the above list based on status.
Computers and Technology
1 answer:
dedylja [7]4 years ago
7 0

// Making a function that will take a integer as argument and return  print the code

void Print(int statuscode){

// starting the switch statement on the interger sent

switch(statuscode)

  case 200: // for case 200

              cout << "Ok,Fullfilled"<< endl;

  case 403: // for case 403

             cout << "Forbidden" << endl;

   case 404: // for case 404

             cout << "Not Found" <<endl;

   case 500: // for case 500

             cout << "Server Error "<< endl;

    default: // default case

              cout << " Wrong code"<<endl;

}

You might be interested in
Need Help ASAP! You might create a flowchart as part of the ___
zepelin [54]

Answer:

design .

Explanation:

6 0
3 years ago
Read 2 more answers
Viết chương trình nhập vào họ tên của bạn rồi in nội dung chuỗi đó lên màn hình.Ví dụ:Nếu họ tên nhập vào là: NGUYEN BINH MINH t
muminat
Why people spam this nugen thing
7 0
3 years ago
You have an Active Directory forest of two trees and eight domains. You haven’t changed any of the operations master domain cont
Vikentia [17]

Answer:

Option C is the correct option.

Explanation:

The following option is correct because the user has two trees and also has eight domains of the Active Directory Forest and the user not done any alteration on the operations of the master domain controllers then, the schema master is on the 1st domain controller that is in forest root domain controller.

8 0
4 years ago
Most source code is typically available on the internet in tarball format or as a git repository. True or false?
Greeley [361]

Most source code is typically available on the internet in tarball format or as a git repository. Therefore, it's true.

<h3>What is a source code?</h3>

It should be noted that a source code simply means programming statement that area created by the programmer and saved in a file.

In this case, most source code is typically available on the internet in tarball format or as a git repository. Therefore, it's true.

Learn more about source code on:

brainly.com/question/4593389

#SPJ12

4 0
2 years ago
Create a CourseException class that extends Exception and whose constructor receives a String that holds a college course’s depa
jekas [21]

Answer:

done done done dome dkme ok

7 0
4 years ago
Other questions:
  • The path to the distribution share should always be referred to by the ____ path to ensure that it can be accessed over the netw
    6·1 answer
  • When you develop an application using a 3-layer architecture, the layer that provides the user interface is called the _____ lay
    13·1 answer
  • ________ software provides a means of sharing, distributing, and searching through documents by converting them into a format th
    13·1 answer
  • The date June 10, 1960, is special because when it is written in the following format, the month times the day equals the year:
    6·1 answer
  • Learning in a digital environment is also called learning.
    6·2 answers
  • What is the name of the item that supplies the exact or near exact voltage at the required wattage to all of the circuitry insid
    10·1 answer
  • Write a c program to count the total number of commented characters and words in a c file taking both types of c file comments (
    11·2 answers
  • PLEASE HELP ME WITH THIS QUESTION:
    8·1 answer
  • Once you start designing the processing logic for each function of your software, you might end up throwing out your logical dat
    13·1 answer
  • Madeleine's Instructor praised her for capturing a nearly perfect image. It included dominance, harmony, and proportion among ot
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!