Saturday, 29 March 2014

What is a Bootstrap and there Usages

        In this article we are going to see about the Bootstrap and there usages in web development, Normally in olden days developing a applications and design a UI for the web applications takes time to do as well as same application for different device , they have to build a separate one, even though they build they not look like same so many constraints are there and also web responsiveness is not there, ie wen page doesn't render based on the mobile devices or size of the browser.

 What is Bootstrap ?
       In simple words bootstrap means the one which loads and done there process with out any external input, in Load time itself all the process to done are decides by itself.

    Now Bootstrap in our context is a simple UI framework which build the websites and pages easily for mobile devices and desktops. This makes lot easier for the developers to develop a rich look UI in web pages along with responsiveness i.e The webpages can changes the look and feel based on the devices. Bootstrap consists of in-build icons and css to give a stylish look and jquery to do the actions.


an sample website look and feel of webpages develop by bootstrap.





For develop the responsive webpages we have to use the Bootstrap , along with HTML 5, using this we can build the complex things in the simple way, no need to worry about the design. developers can concentrate on development of logic instead of spending huge time in design

Three important things to done in to develop a responsive website

Following line indicates that is HTML5

<!DOCTYPE html>

 paste the javascript code in the last line of the body

        <script src="Styles/jquery-1.11.0.min.js"></script>
        <script src="Styles/bootstrap.min.js"></script>

Add the styles

    <meta name="viewport" content="width=device-width, intial-scale=1.0" />
    <link href="Scripts/bootstrap.min.css" rel="stylesheet" />

 From this you can see the basic things of bootstrap and there usages.

Sunday, 23 March 2014

HTTP staus code used in REST WEB API

In this article we are going to see about HTTP status code which is used to determine the called user about the API Request status, Mostly in REST API code are written in the format to support multiple applications from the multiple devices. After the doing the process Request call should get a response for that , that is classified in various ways,

Here we see some useful codes which is used for recursively

CODE
DESCRIPTION
In Simple words

200


OK

It runs correctly

201


Created

Resource Created

202


Accepted

Accept the Request

304


Not Modified

Nothing is modified in data

307


Temporary Redirect

Redirect the Request Temporary to another

400


Bad Request

Client did something wrong in the Request or bad syntax


401


Not Authorized

Client is not authenticated

403


Forbidden

Client receives the Request, but fails to process due to not authorized


404


Not found

Requested Resource is not found

500


Internal Error

Something went wrong in server side

Let we some full list of Http  status code and description

1xx: Informational - Request received, continuing process
2xx: Success - The Request was successfully received.
3xx: Redirection - The Request is received and doing some process like redirection.
4xx: Client Error - The request contains bad syntax in client side.
5xx: Server Error - The server failed to process a valid request



1XX:

Value
Description
100
Continue
101
Switching Protocols
102
Processing
103-199
Unassigned

2XX:

200
OK
201
Created
202
Accepted
203
Non-Authoritative Information
204
No Content
205
Reset Content
206
Partial Content
207
Multi-Status
208
Already Reported
209-225
Unassigned
226
IM Used
227-299
Unassigned

3XX:

300
Multiple Choices
301
Moved Permanently
302
Found
303
See Other
304
Not Modified
305
Use Proxy
306
(Unused)
307
Temporary Redirect
308
Permanent Redirect
309-399
Unassigned

4XX:

400
Bad Request
401
Unauthorized
402
Payment Required
403
Forbidden
404
Not Found
405
Method Not Allowed
406
Not Acceptable
407
Proxy Authentication Required
408
Request Timeout
409
Conflict
410
Gone
411
Length Required
412
Precondition Failed
413
Payload Too Large
414
URI Too Long
415
Unsupported Media Type
416
Requested Range Not Satisfiable
417
Expectation Failed
422
Unprocessable Entity
423
Locked
424
Failed Dependency
425
Unassigned
426
Upgrade Required
427
Unassigned
428
Precondition Required
429
Too Many Requests
430
Unassigned
431
Request Header Fields Too Large
432-499
Unassigned

5XX:

500
Internal Server Error
501
Not Implemented
502
Bad Gateway
503
Service Unavailable
504
Gateway Timeout
505
HTTP Version Not Supported
506
Variant Also Negotiates (Experimental)
507
Insufficient Storage
508
Loop Detected
509
Unassigned
510
Not Extended
511
Network Authentication Required
512-599
Unassigned


From this article you can find out the all http status codes and usages.