http_codes.html 4.3 KB
Newer Older
Jacek Furmankiewicz's avatar
Jacek Furmankiewicz committed
1 2 3 4 5 6 7 8 9 10


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
11
    <title>HTTP codes &mdash; CorePost 0.0.16 documentation</title>
Jacek Furmankiewicz's avatar
Jacek Furmankiewicz committed
12 13 14 15 16 17 18
    
    <link rel="stylesheet" href="_static/default.css" type="text/css" />
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '',
19
        VERSION:     '0.0.16',
Jacek Furmankiewicz's avatar
Jacek Furmankiewicz committed
20 21 22 23 24 25 26 27
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="_static/jquery.js"></script>
    <script type="text/javascript" src="_static/underscore.js"></script>
    <script type="text/javascript" src="_static/doctools.js"></script>
28 29 30
    <link rel="top" title="CorePost 0.0.16 documentation" href="index.html" />
    <link rel="next" title="Returning responses" href="responses.html" />
    <link rel="prev" title="Argument validation" href="arguments.html" /> 
Jacek Furmankiewicz's avatar
Jacek Furmankiewicz committed
31 32 33 34 35 36 37 38 39
  </head>
  <body>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
40
          <a href="responses.html" title="Returning responses"
Jacek Furmankiewicz's avatar
Jacek Furmankiewicz committed
41 42
             accesskey="N">next</a> |</li>
        <li class="right" >
43
          <a href="arguments.html" title="Argument validation"
Jacek Furmankiewicz's avatar
Jacek Furmankiewicz committed
44
             accesskey="P">previous</a> |</li>
45
        <li><a href="index.html">CorePost 0.0.16 documentation</a> &raquo;</li> 
Jacek Furmankiewicz's avatar
Jacek Furmankiewicz committed
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="http-codes">
<h1>HTTP codes<a class="headerlink" href="#http-codes" title="Permalink to this headline"></a></h1>
<p>By default, CorePost returns the appropriate HTTP code based on the HTTP method:</p>
<p>Success:</p>
<ul class="simple">
<li>200 (OK) - GET, DELETE, PUT</li>
<li>201 (Created) - POST</li>
</ul>
<p>Errors:</p>
<ul class="simple">
<li>404 - not able to match any URL.</li>
<li>400 - missing mandatory argument (driven from the arguments on the actual functions)</li>
<li>400 - argument failed validation</li>
<li>500 - server error</li>
</ul>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
  <h4>Previous topic</h4>
78 79
  <p class="topless"><a href="arguments.html"
                        title="previous chapter">Argument validation</a></p>
Jacek Furmankiewicz's avatar
Jacek Furmankiewicz committed
80
  <h4>Next topic</h4>
81 82
  <p class="topless"><a href="responses.html"
                        title="next chapter">Returning responses</a></p>
Jacek Furmankiewicz's avatar
Jacek Furmankiewicz committed
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111
  <h3>This Page</h3>
  <ul class="this-page-menu">
    <li><a href="_sources/http_codes.txt"
           rel="nofollow">Show Source</a></li>
  </ul>
<div id="searchbox" style="display: none">
  <h3>Quick search</h3>
    <form class="search" action="search.html" method="get">
      <input type="text" name="q" />
      <input type="submit" value="Go" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    <p class="searchtip" style="font-size: 90%">
    Enter search terms or a module, class or function name.
    </p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
112
          <a href="responses.html" title="Returning responses"
Jacek Furmankiewicz's avatar
Jacek Furmankiewicz committed
113 114
             >next</a> |</li>
        <li class="right" >
115
          <a href="arguments.html" title="Argument validation"
Jacek Furmankiewicz's avatar
Jacek Furmankiewicz committed
116
             >previous</a> |</li>
117
        <li><a href="index.html">CorePost 0.0.16 documentation</a> &raquo;</li> 
Jacek Furmankiewicz's avatar
Jacek Furmankiewicz committed
118 119 120 121 122 123 124 125
      </ul>
    </div>
    <div class="footer">
        &copy; Copyright 2012, Jacek Furmankiewicz.
      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.2.
    </div>
  </body>
</html>